package com.bestcem.xm.member.service.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * 扩展字段列表 DTO
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/7/19
 */

@Getter
@Setter
@ToString
public class MetaExtendFieldDTO {

    private String id;

    private String orgId;

    @JsonProperty(value = "attribute")
    private Integer memberType;

    private String name;

    @JsonProperty(value = "f_type")
    private Integer type;

    private String source;

    @JsonProperty(value = "type")
    private String typeName;

    /**
     * 创建时间
     */
    @JsonProperty("createdDT")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    protected Date createTime;

    /**
     * 修改时间
     */
    @JsonProperty("updatedDT")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    protected Date updateTime;

}
